package com.xuhuan.demo.pattern.builder;

/**
 * @author huan.xu
 * @date 2021/10/5 22:01
 * @description 抽象的建造者
 */
public abstract class HouseBuilder {

    protected House house = new House();

    /**
     * 建造地基
     */
    public abstract void buildBasic();

    /**
     * 砌墙
     */
    public abstract void buildWalls();

    /**
     * 封顶
     */
    public abstract void buildRoofed();

    public House buildHouse() {
        return this.house;
    }
}
